package com.base.txl.activity;

import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.base.txl.utils.ComponentUtils;
import com.fan.txl.ui.routers.ComponentRouters;
import com.github.mzule.activityrouter.annotation.Router;
import com.github.mzule.activityrouter.router.Routers;
import com.trello.rxlifecycle2.components.support.RxAppCompatActivity;

/**
 * Created by os on 2017/1/5.
 */

public class SuperActivity extends RxAppCompatActivity {

    public void openComponent(Class<? extends AppCompatActivity> activity){
        ComponentUtils.start(this,activity);
    }
    @Router("logout")
    public static void logout(Context context, Bundle bundle) {
        //del data
        Routers.open(context, ComponentRouters.login);
    }
   /* public T<T> getView(int resId, T<T> view) {
        return (T) super.findViewById(resId);
    }*/
}
